package com.base.service.impl;

import com.base.mapper.voipmapper.JhzforderMapper;
import com.base.po.voip.Jhzforder;
import com.base.po.voip.JhzforderExample;
import com.base.service.JhzforderService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("JhzforderService")
public class JhzforderServiceImpl implements JhzforderService {
    @Autowired
    JhzforderMapper Jhzfordermapper;
    @Override
    public int countByExample(JhzforderExample example) {
        return Jhzfordermapper.countByExample(example);
    }

    @Override
    public int deleteByExample(JhzforderExample example) {
        return Jhzfordermapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String outTradeNo) {
        return Jhzfordermapper.deleteByPrimaryKey(outTradeNo);
    }

    @Override
    public int insert(Jhzforder record) {
        return Jhzfordermapper.insert(record);
    }

    @Override
    public int insertSelective(Jhzforder record) {
        return Jhzfordermapper.insertSelective(record);
    }

    @Override
    public List<Jhzforder> selectByExample(JhzforderExample example) {
        return Jhzfordermapper.selectByExample(example);
    }

    @Override
    public Jhzforder selectByPrimaryKey(String outTradeNo) {
        return Jhzfordermapper.selectByPrimaryKey(outTradeNo);
    }

    @Override
    public int updateByExampleSelective(Jhzforder record, JhzforderExample example) {
        return Jhzfordermapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Jhzforder record, JhzforderExample example) {
        return Jhzfordermapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Jhzforder record) {
        return Jhzfordermapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Jhzforder record) {
        return Jhzfordermapper.updateByPrimaryKey(record);
    }

    @Override
    public Integer countByAll(String out_trade_no, String memberid, String orderid, String transaction_id, String status) {
        return Jhzfordermapper.countByAll( out_trade_no,  memberid,  orderid,  transaction_id,  status);
    }

    @Override
    public List<Jhzforder> selectByAll(Page page, String out_trade_no, String memberid, String orderid, String transaction_id, String status) {
        return Jhzfordermapper.selectByAll( page,out_trade_no,  memberid,  orderid,  transaction_id,  status);
    }
}
